package com.ruoyi.financial.feign;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.SysFile;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

@Component
@FeignClient(value = "ruoyi-file")
public interface FileFeign {
    @PostMapping("/upload")
    public R<SysFile> upload(@RequestBody MultipartFile file);
}
